Ext.define('BM.view.trade.SelectTokenCheckOut', {
    extend: 'Ext.window.Window',
    alias : 'widget.selecttokencheckout',
    title : '选择结帐手牌',
    layout: 'fit',
    height: 400,
    width : 420,
    autoShow: true,
    initComponent: function() {
        this.items = [{
        	xtype:'panel',
        	layout: 'border',
        	items:[
        	{
        	 region: 'west',
        	 margins: '5 5 2 5',
        	 title:'使用中的手牌',
        	 width:200,
        	 items:[
	        	 {
		        	 height:70,
		        	 items:[
		        	 	{
			        	 	xtype:'panel',
			        	 	border:false,
			        	 	height:10
			        	},{
			               xtype: 'textfield',
			               fieldLabel: '输入手牌编号',
			               margins: '10 0 0 0',
			     		   labelAlign: 'right',
			     		   width:180,
			     		   labelWidth: 80
			             },{
			               xtype:'panel',
			               border:false,
			               html:'<font class="token-order-text">注：输入要结手牌按回安健即可将手牌加到右边！</font>'
			             }
		        	 ]
		        },{
	             	layout:'fit',
	             	height:240,
	             	width:240,
	             	items:{
		             	xtype:'treepanel',
		             	store : 'TreeTokens',
					    rootVisible: false
				    }
	            }
        	]
        	},{
        	 region: 'center',
        	 margins: '5 5 2 5',
        	 title:'待结帐手牌',
        	 width:200,
        	 items:{
	             	xtype:'treepanel',
	             	//store : 'TreeTokens',
				    rootVisible: false
		    	}
        	}
        	]
        
        }
        ];

        this.buttons = [
            {
                text: '结账',
                action: 'save'
            },
            {
                text: '取消',
                scope: this,
                handler: this.close
            }
        ];

        this.callParent(arguments);
    }
});